﻿@model KRM.Core.VoucherDefault
@{
    ViewBag.Title = "Add Voucher Reason";
    Layout = "/Views/Shared/_PopupLayout.cshtml";
}
<div class="popup padding10" id="AddVoucherReason">
    <div id="Msg-VoucherReasonResult" class="row-fluid"></div>
    <form action="/Voucher/AddVoucherReason" class="form-horizontal nomargin row-fluid " method="POST" id = "frAddVoucherReason">
        <div class="row-fluid">
            <label for="textfield" class="span1 bottom">Reason</label>
            <div class="span11">
                <input type="text" class="input-block-level" name="VoucherReason" required="required" value=""/>
            </div>
        </div>
        <fieldset>
            <legend>Default Settings</legend>
                <div  class ="row-fluid"id="body-frAddVoucherReason">
                    <div class="span6">
                        <div class="control-group">
                            <label for="textfield" class="control-label">PreFixCode</label>
                            <div class="controls">
                                <input type="text" name="PreFixCode" required="required" PlaceHolder="(3 letters only. Ex: WNT)"  class="input-block-level"/>
                            </div>
                        </div>
                        <div class="control-group">
                            <label for="textfield" class="control-label">ValueType</label>
                            <div class="controls">
                                @Html.DropDownList("ValueType", null, new {required = "required",style="width: 100%"})                            
                            </div>
                        </div>
                        <div class="control-group">
                                
                            <label for="textfield" class="control-label">Value</label>
                            <div class="controls">
                                <input type="text"  name="Value"  id="Value" required="required" data-rule-number="true" value="" class="input-block-level">                                

                            </div>
                        </div>

                        <div class="control-group">
                            <label for="textfield" class="control-label">Minimum Spend</label>
                            <div class="controls">
                                <input type="text"  name="MinimumSpendValue"  id="MinimumSpendValue" required="required" data-rule-number="true" value="0" class="input-block-level">                                

                            </div>
                        </div>

                        <div class="control-group">
                            <label for="textfield" class="control-label">Voucher Type</label>
                            <div class="controls">
                                @Html.DropDownList("VoucherType", null, new {required = "required",style="width: 100%"})                            
                            </div>
                        </div>

                        <div class="control-group">
                            <label for="textfield" class="control-label">Expiry Days</label>
                            <div class="controls">
                                    <input type="text" id="ExpiryDays" name="ExpiryDays" placeholder="Number of days the voucher valid" required="required"value="0" class="input-block-level">
                            </div>  
                        </div>

                        <div class="control-group">
                            <label for="textfield" class="control-label">Redemption Method</label>
                            <div class="controls">
                                @Html.DropDownList("RedemptionMethod", null, new {required = "required",style="width: 100%"})
                            </div>
                        </div>
                    </div> 
                    <div class="span6">
                        <div class="control-group">
                            <label for="textfield" class="">Description</label>
                            <div class="">
                                <textarea name="Description" id="Description"  class="input-block-level"rows="9" required = "required"></textarea>
                            </div>
                        </div> 
                        <div class="control-group">
                            <label for="textfield" class="control-label">Layout</label>
                            <div class="controls">
                                @Html.DropDownList("VoucherLayoutID", null, new {style="width: 98%"})
                            </div>
                        </div>

                    </div>
                    <div class="span8 text-center">
                        <button type="submit" class="btn btn-primary" >Save</button>
                        <button type="reset" class="btn ">Clear</button>
                        <a href="/Voucher/AddVoucher" class="btn" >Back</a>
                    </div>
                </div>
        </fieldset>
    </form>
</div>
